-- GENERATED SPELL FOR [Geopriest Gukk'rok] --


function spell0_5863(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(2054,pUnit)
pUnit:RegisterEvent('Sorts_5863', 3000, 1)
end

function spell1_5863(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(600,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5863', 30000, 1)
end

function spell2_5863(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(6075,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5863', 15000, 1)
end

function Sorts_5863(pUnit, Event)
local choix_sorts_5863 = math.random(0, 2)
if choix_sorts_5863 == 0 then
pUnit:RegisterEvent('spell0_5863', 1, 1)
end
if choix_sorts_5863 == 1 then
pUnit:RegisterEvent('spell1_5863', 1, 1)
end
if choix_sorts_5863 == 2 then
pUnit:RegisterEvent('spell2_5863', 1, 1)
end
end

function mob5863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5863', math.random(1500, 3000), 1)
end

function mob5863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5863, 1, 'mob5863_Action')
RegisterUnitEvent(5863, 2, 'mob5863_Leave')
RegisterUnitEvent(5863, 3, 'mob5863_Kill')
RegisterUnitEvent(5863, 4, 'mob5863_Die')
